package com.sq.partner.manager.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.IGatewayChannelInfoConfigDao;
import com.sq.partner.manager.dao.IGatewayOrderDao;
import com.sq.partner.manager.mybatis.model.GatewayChannelInfo;
import com.sq.partner.manager.mybatis.model.TreeDto;
import com.sq.partner.manager.service.IGatewayOrderService;
import com.sq.partner.manager.util.Page;
@Service
public class GatewayOrderServiceImpl implements IGatewayOrderService {

	@Resource
	private IGatewayChannelInfoConfigDao channelInfoConfigDao;

	@Resource
	private IGatewayOrderDao gatewayOrderDao;
	
	@Override
	public List<Map> queryChannelInfoList(GatewayChannelInfo channelInfo,
			String flag) throws Exception {
		return channelInfoConfigDao.queryChannelInfoList(channelInfo,flag);
	}

	@Override
	public Page<Map<String, Object>> queryOrderPageByCriteria(
			Page<Map<String, Object>> page) throws Exception {
		return gatewayOrderDao.queryOrderPageByCriteria(page);
	}

	@Override
	public Page<Map<String, Object>> queryPolicyPageByOrderNo(
			Page<Map<String, Object>> page) throws Exception {
		return gatewayOrderDao.queryPolicyPageByOrderNo(page);
	}

	@Override
	public List<TreeDto> querySubChannelTreeByParentChannelCode(
			String parentChannelCode) throws Exception {
		
		return gatewayOrderDao.querySubChannelTreeByParentChannelCode(parentChannelCode);
	}

}
